import 'package:flutter/material.dart';
import 'package:flutter_modular/flutter_modular.dart';

class RoutePage2 extends StatefulWidget {
  const RoutePage2({Key? key}) : super(key: key);

  @override
  State<RoutePage2> createState() => _RoutePage2State();
}

class _RoutePage2State extends State<RoutePage2> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: Container(
        color: Colors.blue,
        alignment: Alignment.center,
        child: GestureDetector(
          onTap: (){
            Modular.to.pushNamed(Modular.initialRoute+"?id=3", /*arguments: item*/);
          },
          child: Container(
            width: 100,
            height: 100,
            color: Colors.white,
          ),
        ),
      ),);
  }
}
